<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Core Plot (Mac OS): Source/CPTScatterPlot.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="customdoxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="core-plot-logo.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Core Plot (Mac OS)
   
   </div>
   <div id="projectbrief">Cocoa plotting framework for Mac OS X and iOS</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Animation&#160;&&#160;Constants</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('_c_p_t_scatter_plot_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">Source/CPTScatterPlot.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_c_p_t_scatter_plot_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_definitions_8h.html">CPTDefinitions.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#import &quot;<a class="code" href="_c_p_t_plot_8h.html">CPTPlot.h</a>&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#import &lt;Foundation/Foundation.h&gt;</span>
<a name="l00004"></a>00004 
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a>;
<a name="l00008"></a>00008 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_mutable_numeric_data.html" title="An annotated NSMutableData type.">CPTMutableNumericData</a>;
<a name="l00009"></a>00009 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_numeric_data.html" title="An annotated NSData type.">CPTNumericData</a>;
<a name="l00010"></a>00010 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_plot_symbol.html" title="Plot symbols for CPTScatterPlot.">CPTPlotSymbol</a>;
<a name="l00011"></a>00011 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_scatter_plot.html" title="A two-dimensional scatter plot.">CPTScatterPlot</a>;
<a name="l00012"></a>00012 <span class="keyword">@class</span> <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a>;
<a name="l00013"></a>00013 
<a name="l00016"></a>00016 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="group__plot_bindings_scatter_plot.html#ga0681f58616dcb9c1ddf193175c6194ce" title="X values.">CPTScatterPlotBindingXValues</a>;
<a name="l00017"></a>00017 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="group__plot_bindings_scatter_plot.html#ga07dbc798c8a8758cc7a1770cf670492b" title="Y values.">CPTScatterPlotBindingYValues</a>;
<a name="l00018"></a>00018 <span class="keyword">extern</span> <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html">NSString</a> *<span class="keyword">const</span> <a class="code" href="group__plot_bindings_scatter_plot.html#gae416eb41cbdffa71534a085dcbb1f206" title="Plot symbols.">CPTScatterPlotBindingPlotSymbols</a>;
<a name="l00020"></a>00020 
<a name="l00024"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0ea">00024</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0ea" title="Enumeration of scatter plot data source field types.">_CPTScatterPlotField</a> {
<a name="l00025"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0eaace7a95b26de1883d8f69dafc57cf0a1d">00025</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0eaace7a95b26de1883d8f69dafc57cf0a1d" title="X values.">CPTScatterPlotFieldX</a>, 
<a name="l00026"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0eaafe5068b0719ce6f450911178dab9bafd">00026</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#af4ff7e5cf854ac325e3328357944b0eaafe5068b0719ce6f450911178dab9bafd" title="Y values.">CPTScatterPlotFieldY</a>  
<a name="l00027"></a>00027 }
<a name="l00028"></a>00028 <a class="code" href="_c_p_t_scatter_plot_8h.html#a2081e49de0266e8a0f1d9e61120620f6" title="Enumeration of scatter plot data source field types.">CPTScatterPlotField</a>;
<a name="l00029"></a>00029 
<a name="l00033"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955a">00033</a> <span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955a" title="Enumeration of scatter plot interpolation algorithms.">_CPTScatterPlotInterpolation</a> {
<a name="l00034"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aaa0dcba8b82569841d1599aa5507f2957">00034</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aaa0dcba8b82569841d1599aa5507f2957" title="Linear interpolation.">CPTScatterPlotInterpolationLinear</a>,   
<a name="l00035"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aa61b6b90b68d1b6c1ba6330683ed700df">00035</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aa61b6b90b68d1b6c1ba6330683ed700df" title="Steps beginnning at data point.">CPTScatterPlotInterpolationStepped</a>,  
<a name="l00036"></a><a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aa56c2cfd36a6b5b8b1ccb61d1ef6e37eb">00036</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#ad4aa5aae63ca2e817aeeea09548e955aa56c2cfd36a6b5b8b1ccb61d1ef6e37eb" title="Steps centered at data point.">CPTScatterPlotInterpolationHistogram</a> 
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038 <a class="code" href="_c_p_t_scatter_plot_8h.html#afa84bf01f2d533d0cd4973aabc45c498" title="Enumeration of scatter plot interpolation algorithms.">CPTScatterPlotInterpolation</a>;
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="preprocessor">#pragma mark -</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00045"></a><a class="code" href="protocol_c_p_t_scatter_plot_data_source-p.html">00045</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_scatter_plot_data_source-p.html" title="A scatter plot data source.">CPTScatterPlotDataSource</a>&lt;<a class="code" href="protocol_c_p_t_plot_data_source-p.html" title="A plot data source.">CPTPlotDataSource</a>&gt;
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="keyword">@optional</span>
<a name="l00048"></a>00048 
<a name="l00051"></a>00051 
<a name="l00057"></a>00057 -(<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html">NSArray</a> *)symbolsForScatterPlot:(<a class="code" href="interface_c_p_t_scatter_plot.html" title="A two-dimensional scatter plot.">CPTScatterPlot</a> *)plot recordIndexRange:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSRange</a>)indexRange;
<a name="l00058"></a>00058 
<a name="l00064"></a>00064 -(<a class="code" href="interface_c_p_t_plot_symbol.html" title="Plot symbols for CPTScatterPlot.">CPTPlotSymbol</a> *)symbolForScatterPlot:(<a class="code" href="interface_c_p_t_scatter_plot.html" title="A two-dimensional scatter plot.">CPTScatterPlot</a> *)plot recordIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00065"></a>00065 
<a name="l00067"></a>00067 
<a name="l00068"></a>00068 <span class="keyword">@end</span>
<a name="l00069"></a>00069 
<a name="l00070"></a>00070 <span class="preprocessor">#pragma mark -</span>
<a name="l00071"></a>00071 <span class="preprocessor"></span>
<a name="l00075"></a><a class="code" href="protocol_c_p_t_scatter_plot_delegate-p.html">00075</a> <span class="keyword">@protocol </span><a class="code" href="protocol_c_p_t_scatter_plot_delegate-p.html" title="Scatter plot delegate.">CPTScatterPlotDelegate</a>&lt;<a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html">NSObject</a>&gt;
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="keyword">@optional</span>
<a name="l00078"></a>00078 
<a name="l00079"></a>00079 <span class="comment">// @name Point selection</span>
<a name="l00081"></a>00081 <span class="comment"></span>
<a name="l00086"></a>00086 -(void)scatterPlot:(<a class="code" href="interface_c_p_t_scatter_plot.html" title="A two-dimensional scatter plot.">CPTScatterPlot</a> *)plot plotSymbolWasSelectedAtRecordIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00087"></a>00087 
<a name="l00089"></a>00089 
<a name="l00090"></a>00090 <span class="keyword">@end</span>
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="preprocessor">#pragma mark -</span>
<a name="l00093"></a>00093 <span class="preprocessor"></span>
<a name="l00094"></a><a class="code" href="interface_c_p_t_scatter_plot.html">00094</a> <span class="keyword">@interface </span><a class="code" href="interface_c_p_t_scatter_plot.html" title="A two-dimensional scatter plot.">CPTScatterPlot</a> : <a class="code" href="interface_c_p_t_plot.html" title="An abstract plot class.">CPTPlot</a> {
<a name="l00095"></a>00095     <span class="keyword">@private</span>
<a name="l00096"></a><a class="code" href="interface_c_p_t_scatter_plot.html#af809383099574f528fef47497ac913b8">00096</a>     <a class="code" href="_c_p_t_scatter_plot_8h.html#afa84bf01f2d533d0cd4973aabc45c498" title="Enumeration of scatter plot interpolation algorithms.">CPTScatterPlotInterpolation</a> <a class="code" href="interface_c_p_t_scatter_plot.html#af809383099574f528fef47497ac913b8" title="The interpolation algorithm used for lines between data points. Default is CPTScatterPlotInterpolatio...">interpolation</a>;
<a name="l00097"></a><a class="code" href="interface_c_p_t_scatter_plot.html#ab90031ebb57908a953e9e0a10e1a43f2">00097</a>     <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *<a class="code" href="interface_c_p_t_scatter_plot.html#ab90031ebb57908a953e9e0a10e1a43f2" title="The line style for the data line. If nil, the line is not drawn.">dataLineStyle</a>;
<a name="l00098"></a><a class="code" href="interface_c_p_t_scatter_plot.html#a059677ae2aa9d15fcde552e2a0dd0f7d">00098</a>     <a class="code" href="interface_c_p_t_plot_symbol.html" title="Plot symbols for CPTScatterPlot.">CPTPlotSymbol</a> *<a class="code" href="interface_c_p_t_scatter_plot.html#a059677ae2aa9d15fcde552e2a0dd0f7d" title="The plot symbol drawn at each point if the data source does not provide symbols. If nil...">plotSymbol</a>;
<a name="l00099"></a><a class="code" href="interface_c_p_t_scatter_plot.html#a955037267ca08091d5ca7f2baab4e746">00099</a>     <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *<a class="code" href="interface_c_p_t_scatter_plot.html#a955037267ca08091d5ca7f2baab4e746" title="The fill style for the area underneath the data line. If nil, the area is not filled.">areaFill</a>;
<a name="l00100"></a><a class="code" href="interface_c_p_t_scatter_plot.html#a37c6bfb2c808b631c0031855c1b306bf">00100</a>     <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *<a class="code" href="interface_c_p_t_scatter_plot.html#a37c6bfb2c808b631c0031855c1b306bf" title="The fill style for the area above the data line. If nil, the area is not filled.">areaFill2</a>;
<a name="l00101"></a><a class="code" href="interface_c_p_t_scatter_plot.html#aea48c69d7c599ca618b0a0612abaeb59">00101</a>     <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="code" href="interface_c_p_t_scatter_plot.html#aea48c69d7c599ca618b0a0612abaeb59" title="The Y coordinate of the straight boundary of the area fill. If not a number, the area is not filled...">areaBaseValue</a>;
<a name="l00102"></a><a class="code" href="interface_c_p_t_scatter_plot.html#afffaa2ceecb2df07f0215f59511a2659">00102</a>     <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> <a class="code" href="interface_c_p_t_scatter_plot.html#afffaa2ceecb2df07f0215f59511a2659" title="The Y coordinate of the straight boundary of the secondary area fill. If not a number, the area is not filled.">areaBaseValue2</a>;
<a name="l00103"></a><a class="code" href="interface_c_p_t_scatter_plot.html#ae2889d87641d64cd97f87ed3128514e7">00103</a>     CGFloat <a class="code" href="interface_c_p_t_scatter_plot.html#ae2889d87641d64cd97f87ed3128514e7" title="A margin added to each side of a symbol when determining whether it has been hit.">plotSymbolMarginForHitDetection</a>;
<a name="l00104"></a>00104     <a class="codeRef" href="http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSArray_Class/Reference/Reference.html">NSArray</a> *plotSymbols;
<a name="l00105"></a>00105 }
<a name="l00106"></a>00106 
<a name="l00107"></a>00107 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_line_style.html" title="Immutable wrapper for various line drawing properties.">CPTLineStyle</a> *dataLineStyle;
<a name="l00108"></a>00108 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_plot_symbol.html" title="Plot symbols for CPTScatterPlot.">CPTPlotSymbol</a> *plotSymbol;
<a name="l00109"></a>00109 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *areaFill;
<a name="l00110"></a>00110 <span class="keyword">@property</span> (nonatomic, readwrite, copy) <a class="code" href="interface_c_p_t_fill.html" title="Draws area fills.">CPTFill</a> *areaFill2;
<a name="l00111"></a>00111 <span class="keyword">@property</span> (nonatomic, readwrite) <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> areaBaseValue;
<a name="l00112"></a>00112 <span class="keyword">@property</span> (nonatomic, readwrite) <a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSDecimal</a> areaBaseValue2;
<a name="l00113"></a>00113 <span class="keyword">@property</span> (nonatomic, readwrite, assign) <a class="code" href="_c_p_t_scatter_plot_8h.html#afa84bf01f2d533d0cd4973aabc45c498" title="Enumeration of scatter plot interpolation algorithms.">CPTScatterPlotInterpolation</a> interpolation;
<a name="l00114"></a>00114 <span class="keyword">@property</span> (nonatomic, readwrite, assign) CGFloat plotSymbolMarginForHitDetection;
<a name="l00115"></a>00115 
<a name="l00116"></a>00116 -(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)indexOfVisiblePointClosestToPlotAreaPoint:(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>)viewPoint;
<a name="l00117"></a>00117 -(<a class="codeRef" href="http://developer.apple.com/documentation/GraphicsImaging/Reference/CGGeometry/Reference/reference.html#//apple_ref/doc/c_ref/CGPoint.html">CGPoint</a>)plotAreaPointOfVisiblePointAtIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00118"></a>00118 
<a name="l00119"></a>00119 -(<a class="code" href="interface_c_p_t_plot_symbol.html" title="Plot symbols for CPTScatterPlot.">CPTPlotSymbol</a> *)plotSymbolForRecordIndex:(<a class="codeRef" href="http://developer.apple.com/mac/library/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_DataTypes/Reference/reference.html">NSUInteger</a>)index;
<a name="l00120"></a>00120 
<a name="l00121"></a>00121 <span class="keyword">@end</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="_c_p_t_scatter_plot_8h.html">CPTScatterPlot.h</a>      </li>

    <li class="footer">Generated by <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a></li>
   </ul>
 </div>


</body>
</html>
